import request from './request'
import info from './info'
import theme from './theme'
import store from './store'
import synctool from './synctool'
import language from './language'
import router from './router'
import storage from './storage'
import file from './file'
import tool from './tool/'
import action from './action'
import component from './component'
import user from './user'
import form from './form'
import audio from './audio'
import map from './map'

// 是否开发环境
const isDevelopment = process.env.NODE_ENV === 'development'

export default {
	isDevelopment, state: {}, // 用于接收$store.state。如果有不方便拿到$store.state的地方，可以在这里获取
	request, info, theme, store, synctool, language, router, storage, file, action, component, user, form, audio,
	mapTool: map, // 地图工具
	time: tool.time, // 时间工具也提取出来直接用
	common: tool.common, // 通用工具提取出来直接用
	...tool.base, // 基础工具直接使用
	...store.dialog, // 自定义对话框
}